__author__ = 'x0r'
import json

def cfor(first,test,update):
    while test(first):
        yield first
        first = update(first)

json_str ='[{"Args": ["/", "/usr"], "Name": "SysDiskSpc"}, {"Args":[], "Name": "SysHostname"}, {"Args": [], "Name": "SysUptime"}]'

s =  (json.loads(json_str))
print s[0]["Name"]
index = 0

for i in cfor(0,lambda i:i<len(s),lambda i:i+1):
    print s[i]["Name"], i
